# Native support for standard Java libraries
#
# Copyright (c) 1996 Systems Architecture Research Centre,
#		   City University, London, UK.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.

VPATH=		@srcdir@/java.io:@srcdir@/java.lang:@srcdir@/java.util
srcdir=		@srcdir@
prefix=		@prefix@
exec_prefix=	@exec_prefix@
libdir=		@libdir@
CC=		@CC@
CFLAGS=		@CFLAGS@ -I$(srcdir)/../support -I$(srcdir)/../../include
INSTALL=	@INSTALL@
INSTALL_DATA=	@INSTALL_DATA@
PIC=		@PIC@
LDFLAGS=	@LDFLAGS@

LIB=		libnative.so

OBJECT.IO=	java.io.FileDescriptorStub.o \
		java.io.FileDescriptor.o \
		java.io.FileInputStreamStub.o \
		java.io.FileInputStream.o \
		java.io.FileOutputStreamStub.o \
		java.io.FileOutputStream.o \
		java.io.FileStub.o \
		java.io.File.o \
		java.io.RandomAccessFileStub.o \
		java.io.RandomAccessFile.o

OBJECT.LANG=	java.lang.ClassLoaderStub.o \
		java.lang.ClassLoader.o \
		java.lang.ClassStub.o \
		java.lang.Class.o \
		java.lang.CompilerStub.o \
		java.lang.Compiler.o \
		java.lang.DoubleStub.o \
		java.lang.Double.o \
		java.lang.FloatStub.o \
		java.lang.Float.o \
		java.lang.MathStub.o \
		java.lang.Math.o \
		java.lang.ObjectStub.o \
		java.lang.Object.o \
		java.lang.ProcessReaperStub.o \
		java.lang.ProcessReaper.o \
		java.lang.RuntimeStub.o \
		java.lang.Runtime.o \
		java.lang.SecurityManagerStub.o \
		java.lang.SecurityManager.o \
		java.lang.SystemStub.o \
		java.lang.System.o \
		java.lang.ThreadStub.o \
		java.lang.Thread.o \
		java.lang.ThrowableStub.o \
		java.lang.Throwable.o \
		java.lang.UNIXProcessStub.o \
		java.lang.UNIXProcess.o

OBJECT.UTIL=	java.util.DateStub.o \
		java.util.Date.o

OBJECTS=	$(OBJECT.LANG) $(OBJECT.IO) $(OBJECT.UTIL)

all:		$(LIB)

$(LIB):		$(OBJECTS)
		$(LD) $(LDFLAGS) -o $(LIB) $(OBJECTS)

.c.o:
		$(CC) $(CFLAGS) -c $(PIC) $<

clean:
		rm -f $(LIB) $(OBJECTS)

distclean:	clean

install:
		-mkdir -p $(libdir)
		$(INSTALL_DATA) $(LIB) $(libdir)/$(LIB)
